﻿using HttpClientLite.Configurations.interfaces;
using System.Net.Http;

namespace HttpClientLite.Extensions;

internal class HttpClientConfigurationMethod(Action<HttpClient> configurationMethod) : IHttpClientConfiguration
{
    public void Configure(HttpClient httpClient)
    {
        configurationMethod(httpClient);
    }
}

internal class HttpManagerConfigurationMethod(Action<HttpManagerBase> configurationMethod) : IHttpManagerConfiguration
{
    public void Configure(HttpManagerBase httpManager)
    {
        configurationMethod(httpManager);
    }
}

internal class RequestMessageConfigurationMethod(Action<HttpRequestMessage> configurationMethod) : IRequestMessageConfiguration
{
    public void Configure(HttpRequestMessage httpRequestMessage)
    {
        configurationMethod(httpRequestMessage);
    }
}